package com.grammer;


import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@interface Description {

  String desc();

  String author();

  int age() default 10;
}

@Description(desc = "people", author = "people")
public class People {

}

class Nurse extends People {
}

@Description(author = "doctor", desc = "doctor", age = 20)
class Doctors extends People {
}





